package util;
import net.sf.json.JSONObject;

import javax.servlet.http.HttpServletRequest;

public class JSONUtil {
    public static JSONObject getJSON(HttpServletRequest req)
    {
        String data = req.getParameter("data");

//        System.out.println("服务端接收到的数据是：" +data);

        JSONObject json=JSONObject.fromObject(data);
//
//        int id = json.get("")
//        System.out.println("转换为Hero对象之后是："+hero);
        return json;
    }
}
